package com.作业.Day3;

import java.util.Scanner;

public class Homework2 {
    public static void main(String[] args) {
        /**
         * 倒立三角形
         */
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入直角三角形的行数:");
        int i = scanner.nextInt();
        for (int j = i; j >=0; j--) {
            int m= 2*j+1;
            for (int k = 0; k < m; k++) {
                System.out.print("*");
            }
            System.out.println();

        }
    }
}
